package com.jsoft.testjavabasics.test1;

public class Test {

	public static void main(String args[]) {
		int a, b;
		a = 10;
		b = (a == 1) ? 20 : 30;
		System.out.println("Value of b is : " + b);

		b = (a == 10) ? 20 : 30;
		System.out.println("Value of b is : " + b);
	}
}
